<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>
	<div id = "menuCliente">
		<ui:include src="/pagine_clienti/commonHeader.xhtml" />
	</div>
</h:head>
<h:body >
	<br></br>
	<p:fieldset legend="Profilo Personale">  <br></br>
        <p:dataTable id="tableprofile" var="userBean" value="#{userBean}">  
  
            <p:column headerText="Nome">  
                <h:outputText value="#{userBean.name}" />  
            </p:column>  
  
            <p:column headerText="Cognome">  
                <h:outputText value="#{userBean.surname}" />  
            </p:column>
            
            <p:column headerText="Email">  
                <h:outputText value="#{userBean.email}" />  
            </p:column>               
        </p:dataTable>  
    </p:fieldset>  
    
    <p:commandButton action="#{profileBean.modPass()}" value="Modifica Password" />
    <p:commandButton action="#{userBean.rimuoviUtente()}" value="Rimuovi Account" />
	
</h:body>
</html>